const { loginlModel, logintModel, loginaModel } = require('./models/loginModel');
// 登录
// 出租方
module.exports.loginl = async function (user) {
    const data = await loginlModel.find({ account: user.account, password: user.password });
    return data;
}
// 租方
module.exports.logint = async function (user) {
    const data = await logintModel.find({ account: user.account, password: user.password });
    return data;
}
// 管理员
module.exports.logina = async function (user) {
    const data = await loginaModel.find({ account: user.account, password: user.password });
    return data;
}